package com.lemt.sunmao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lemt.sunmao.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zik~ zhouxiangyang
 * @Date : 2022/10/24
 * @Description null
 */
@Mapper
public interface UserMapper extends BaseMapper<User>{

    List<User> findPagecUsers(@Param("username") String username,@Param("begin") int begin,@Param("size") int size);

    long count(String username);

    User findById(Long id);

    List<User> selectAll();
}
